public class Main {

    public static void main(String[] args) {
        Basket basket = new Basket();
        basket.add("Milk", 40);
        basket.add("Bread", 30, 3, 0.5);
        basket.print("Milk & Bread");
        System.out.println("Total weight " + basket.getTotalWeight());

        Basket basket2 = new Basket();
        basket2.add("Oranges", 50, 10);
        basket2.print("Oranges");

        System.out.println("Number of items in baskets: " + Basket.getItemsCount());
        System.out.println("Total price of baskets: " + Basket.getBasketsPrice());
        System.out.println("Average item price: " + Basket.calculateAverageItemPrice());
        System.out.println("Average basket price: " + Basket.calculateAverageBasketPrice());

        Arithmetic arithmetic = new Arithmetic(3, 4);

        System.out.println("Sum " + arithmetic.sum());
        System.out.println("Product " + arithmetic.product());
        System.out.println("Minimum " + arithmetic.min());
        System.out.println("Maximum " + arithmetic.max());
    }
}
